import './assets/reset.css'
import './assets/base.css'

import { createApp } from 'vue'
import App from './App.vue'

import 'element-plus/dist/index.css'

//router
import { setupRouter } from './router'
// store
import { setupStore } from './store'
// 全局指令
import { setupGlobDirectives } from './directives'
// 多语言
import { setupLocales } from './locales'

const app = createApp(App)

const bootstrap = async () => {
  // store
  setupStore(app)
  // 全局自定义指令
  setupGlobDirectives(app)
  // 多语言
  setupLocales(app)
  // router
  setupRouter(app)

  app.mount('#app')
}

bootstrap()
